package org.pfc.porlapatilla.DTO;

import org.pfc.porlapatilla.model.Address;

/**
 * Class to wrap user information. This information will be sent to server.
 * @author jorgepolobermudez
 *
 */
public class UserDTO {

	/**
     * The user id.
     */
    private String id;

    /**
     * The user name.
     */
    private String name;

    /**
     * The user surname.
     */
    private String surname;

    /**
     * The user nick.
     */
    private String nick;

    /**
     * The user email.
     */
    private String email;

    /**
     * The user password.
     */
    private String password;
    
    /**
     * The user address.
     */
    private Address address;
    
    /**
     * Default constructor
     */
    public UserDTO() {
    }

	/**
	 * Creates a new user
	 * @param name The user name
	 * @param surname The user surname
	 * @param nick The user nick
	 * @param email The user email
	 * @param password The user password
	 * @param address The user address
	 */
	public UserDTO(String name, String surname, String nick, String email,
			String password, Address address) {
		this.name = name;
		this.surname = surname;
		this.nick = nick;
		this.email = email;
		this.password = password;
		this.address = address;
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the surname
	 */
	public String getSurname() {
		return surname;
	}

	/**
	 * @param surname the surname to set
	 */
	public void setSurname(String surname) {
		this.surname = surname;
	}

	/**
	 * @return the nick
	 */
	public String getNick() {
		return nick;
	}

	/**
	 * @param nick the nick to set
	 */
	public void setNick(String nick) {
		this.nick = nick;
	}

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the address
	 */
	public Address getAddress() {
		return address;
	}

	/**
	 * @param address the address to set
	 */
	public void setAddress(Address address) {
		this.address = address;
	}
    
}
